package jdo.bd;

import javax.jdo.PersistenceManager;
import com.google.appengine.api.datastore.Transaction;


import jdo.pmf.PMF;

public class BD {
	
	public BD() {
	PMF p = new PMF();
	PersistenceManager pm = PMF.getPersistenceManager();
	Transaction tx = (Transaction) pm.currentTransaction();
    try {
        ((javax.jdo.Transaction) tx).begin();
        pm.makePersistent(p);
        tx.commit();
    } finally {
        if (tx.isActive()) {
            tx.rollback();
        	}
    	}
	}
}

/*test du commit svn alexy*/
